package com.xique.park.api;

import com.xique.common.core.constant.ServiceNameConstants;
import com.xique.common.core.domain.R;
import com.xique.park.api.factory.RemoteIndexServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 首页统计客户端
 *
 * @author WLD
 */
@FeignClient(contextId = "RemoteIndexService",
        value = ServiceNameConstants.PARK_BIZ_SERVICE,
        fallbackFactory = RemoteIndexServiceFallbackFactory.class)
public interface RemoteIndexService {

    /**
     * 更新统计缓存
     *
     * @return /
     */
    @PostMapping("/web/index/updateStatisticsCache")
    R<String> updateStatisticsCache();

}
